<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no"/>
    <title>处理流程</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
</head>
<style type="text/css">
.aui-content {
    background: #ffffff;
    overflow: hidden;
    padding: 15px;
}
</style>
<body style="background-color:#FFFFFF;">
	<script id="bugFlow-template" type="text/x-dot-template">
		{{ for(var i=0,j=1; i<=it.length-1; i++,j++) { }}
			<li>
				<i class="aui-iconfont aui-icon-mark aui-bg-warning"></i>
				<div class="aui-timeline-item">
					<div class="aui-timeline-body">
						<div style="width:100%;height:auto;text-align:center">
						{{? it[i].operation_action == 'DISPATCH' }}
							派单
						{{?}}
						{{? it[i].operation_action == 'ORDERRECEIVING' }}
							接单
						{{?}}
						{{? it[i].operation_action == 'UPSTATION' }}
							是否上站
						{{?}}
            {{? it[i].operation_action == 'FEEDBACK' }}
              反馈
            {{?}}
            {{? it[i].operation_action == 'SIGNIN' }}
							签到
						{{?}}
            {{? it[i].operation_action == 'RECEIPT' }}
              回单
            {{?}}
						（{{=it[i].description!= null ? it[i].description:""}}）
						</div>
					</div>
					<div class="aui-timeline-footer" style="text-align:right;">{{=it[i].create_time != null ? it[i].create_time:""}}</div>
				</div>
			</li>
		{{ } }}
	</script>
    <div class="aui-content">
        <ul class="aui-timeline" id="checkBugFlowDetail">

        </ul>
    </div>
</body>
<script type="text/javascript" src="../../script/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/doT.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/debug.js"></script>
<script type="text/javascript" src="../../script/config.js"></script>
<script type="text/javascript" src="../../script/client.api.js"></script>
<script type="text/javascript" src="../../script/aui-alert.js"></script>
<script type="text/javascript">
    apiready = function() {
        //status bar style
        api.setStatusBarStyle({
            style : 'light'
        });
        //从缓存中获取处理流程信息
        var checkDetailAction = $api.getStorage("checkDetailAction");
        if (isExist(checkDetailAction)) {
        	renderTemp('checkBugFlowDetail', 'bugFlow-template', checkDetailAction);
            api.parseTapmode();
        }else{
        	api.toast({
                msg : '暂无处理流程信息',
                location : 'bottom'
            });
        }
    };
</script>
</html>
